﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Sunny.UI;
namespace OtherDevice
{
    public partial class Form_测温 : Form_ControlBase
    {
        public Form_测温()
        {
            InitializeComponent();
        }
        Temperature_Base Trm_Base = null;
        public override void FlushToDlg(object devicebase)
        {
            try
            {
                if (devicebase == null)
                    return;
                this.Trm_Base = devicebase as Temperature_Base;
                this.Dock = DockStyle.Fill;
                this.Show();
            }
            catch (Exception)
            {

            }
        }

        private void btn_开始测温_Click(object sender, EventArgs e)
        {
            try
            {
                double d_Tem = 0;
                Trm_Base.Function_查询温度(ref d_Tem);
                lbl_温度值.Text = $"温度值={d_Tem}";
            }
            catch (Exception)
            {

            }
        }
    }
}
